﻿@using Fengsoft.AIBlog.Web.Models
@model LoginViewModel

@{
    ViewBag.Title=SiteConfiguration.CombineTitle(AccountResource.LoginPageTitle);
    Layout="~/Views/Shared/_HeaderFooterLayout.cshtml";
}
@section head{
    <!-- CSS Page Style -->
    <link rel="stylesheet" href="~/assets/css/pages/page_log_reg_v1.css" />
    <link rel="stylesheet" href="~/assets/plugins/sky-forms/version-2.0.1/css/custom-sky-forms.css" />
}
@section scripts {
    <script type="text/javascript" src="~/assets/plugins/sky-forms/version-2.0.1/js/jquery-ui.min.js"></script>
    <!-- Validation Form -->
    <script type="text/javascript" src="~/assets/plugins/sky-forms/version-2.0.1/js/jquery.validate.min.js"></script>
    <!-- Masking Form -->
    <script type="text/javascript" src="~/assets/plugins/sky-forms/version-2.0.1/js/jquery.maskedinput.min.js"></script>
    <script type="text/javascript">
        // <![CDATA[
        (function ()
        {
            
        })();
        // ]]>
    </script>
}
<!--=== Breadcrumbs ===-->
<div class="breadcrumbs">
    <div class="container">
        <h1 class="pull-left">@AccountResource.LoginPageTitle</h1>
    </div><!--/container-->
</div><!--/breadcrumbs-->
<!--=== End Breadcrumbs ===-->
<!--=== Content Part ===-->
<div class="container content">
    <div class="row">
        <div class="col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3">
            @using (Html.BeginForm("Login", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "reg-page", role = "form" }))
            {
                @Html.AntiForgeryToken()
                <div class="reg-header">
                    <h2>@AccountResource.LoginFormTitle</h2>
                </div>
                @Html.ValidationSummary(true, "", new { @class = "text-danger" })
                <div class="input-group margin-bottom-20">
                    <span class="input-group-addon"><i class="fa fa-user"></i></span>
                    @Html.TextBoxFor(m => m.Email, new { @class = "form-control",placeholder=AccountResource.Email})
                    @*@Html.ValidationMessageFor(m => m.Email, "", new { @class = "text-danger" })*@
                </div>
                <div class="input-group margin-bottom-20">
                    <span class="input-group-addon"><i class="fa fa-lock"></i></span>
                    @Html.PasswordFor(m => m.Password, new { @class = "form-control",placeholder=AccountResource.Password })
                    @*@Html.ValidationMessageFor(m => m.Password, "", new { @class = "text-danger" })*@
                </div>
                <div class="row">
                    <div class="col-md-6">
                        @Html.CheckBoxFor(m => m.RememberMe)
                        @Html.LabelFor(m => m.RememberMe)
                    </div>
                    <div class="col-md-6">
                        <button class="btn-u pull-right" type="submit">@AccountResource.LoginLabel</button>
                    </div>
                </div>
                <hr />
                <h4>@AccountResource.ForgotPasswordLabel</h4>
                <p>
                    @AccountResource.ForgotPasswordDescription1 
                    <a class="color-green" href="~/account/forgotpassword">@AccountResource.ForgotPasswordDescription2</a> 
                    @AccountResource.ForgotPasswordDescription3
                </p>
                <p>
                    <a href="~/account/register">@AccountResource.RegisterDescription</a>
                </p>
            }
        </div>
    </div><!--/row-->
</div><!--/container-->
<!--=== End Content Part ===-->